package com.shell.scheduler.job;

import com.shell.bee.base.utils.SpringContextUtil;
import com.shell.scheduler.Executor;

public class JobUtil {
	public static Executor getJobExecutor(String beanName, String beanDefinition) {
		if (!SpringContextUtil.containsBean(beanName)) {
			SpringContextUtil.setBean(beanName, beanDefinition);
		}
		return (Executor) SpringContextUtil.getBean(beanName);
	}
}
